#include "stdafx.h"
#include ".\charselect.h"
#include ".\User.h"
#include <PacketStruct_AW.h>

_IMPL_POOL(CharSelect)
CharSelect::CharSelect(void):
ZoneInterface(1000)
{
}

CharSelect::~CharSelect(void)
{
}

VOID CharSelect::Create( KEYTYPE key )
{
	SetKey( key );
	SetLinkedServer(NULL);

	On_create();
}

VOID CharSelect::On_create()
{

}

VOID CharSelect::On_destroy()
{
}

VOID CharSelect::On_readyuser( User * pUser )
{
	pUser->SetZoneState( ePRS_BEFORE_ENTER_CHARSELECT );
	pUser->SetZoneKey( GetKey() );
	pUser->SetZoneType( eZONETYPE_CHARSELECT );
}

VOID CharSelect::On_enteruser( User * pUser )
{
	ReadyUser( pUser, eSEND_NONE );

	pUser->SetZoneState( ePRS_AT_CHARSELECT );
}

VOID CharSelect::On_leaveuser( User * pUser )
{
}